package com.yisu.auction.api.core.mapper;

import com.yisu.auction.api.domain.request.activityPackage.SecKillActivityRequest;
import com.yisu.auction.ewf.entity.SecKillLog;
import org.apache.ibatis.annotations.Param;

public interface SecKillLogMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SecKillLog record);

    int insertSelective(SecKillLog record);

    SecKillLog selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SecKillLog record);

    int updateByPrimaryKey(SecKillLog record);

    /**
     * author: 赵杰
     * Business Description：通过秒杀ID, 和用户ID,查看秒杀资格
     * @param secKillActivityRequest
     * @return
     */
    SecKillLog selectSecKillLogByQuery(SecKillActivityRequest secKillActivityRequest);


    /**
     * author: 赵杰
     * Business Description：秒杀动作
     * @param secKillActivityRequest
     * @return
     */
    int secKillAction(SecKillActivityRequest secKillActivityRequest);
}